package com.shareyi.simpleserver.servlet;


/**
 * application context Listener,the reason we named it as ServletContextListener is
 * we want it look like servlet-api interface ,and web developer would understand it
 * quickly. but as we know ,it is the appliction context listenner
 * @author david
 *
 */
public abstract interface ServletContextListener  {

	/**
	 * this method will be called when application is just initialed 
	 * @param applicationContext
	 */
	public void contextInitialized(ApplicationContext applicationContext);
	
	/**
	 * this method will be called when application is going to destroy itself 
	 * @param applicationContext
	 */
	public void contextDestroyed(ApplicationContext applicationContext);
	
	
}
